x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'displayname', 'cos')
legend('location', 'best')
x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'displayname', 'cos')
legend('location', 'best')
darkBackground('hFigure', fig)
x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'DisplayName','cos')
legend('location', 'best')
darkBackground("backColor", [0.3, 0.3, 0.3]); % gray background
x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'DisplayName','cos')
legend('location', 'best')
darkBackground("foreColor", [1, 0, 0]); % red foreground
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y, 30, [0,0,1], 'filled')
x = [0.5*X(:); 0.75*X(:); X(:)];
y = [0.5*Y(:); 0.75*Y(:); Y(:)];
z = [0.5*Z(:); 0.75*Z(:); Z(:)];
scatter3(x,y,z, 30, [0,0,1], 'filled')
x = [ones(1,500) 2*ones(1,500) 3*ones(1,500)];
y2 = 3 * randn(1,500) + 5;
y3 = 5 * randn(1,500) + 5;
tbl = readtable(fullfile(matlabroot,'examples','matlab','data','BicycleCounts.csv'));
daynames = ["Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"];
x = categorical(tbl.Day,daynames);
ispm = tbl.Timestamp.Hour < 12;
tbl = table(LastName,Age,Gender,Height,Weight);
s = scatterhistogram(tbl,'Height','Weight');
% numWords = size(tbl,1);
% colors = rand(numWords,3);
% wordcloud(tbl,'Word','Count','Color',colors);
% title("Sonnets Word Cloud")
% n = [58 115 81 252 180 124 40 80 50 20]';
% loc = ["NJ" "NY" "MA" "OH" "NH" "ME" "CT" "PA" "RI" "VT"]';
% plant = ["Plant A" "Plant A" "Plant A" "Plant A" ...
% "Plant A" "Plant A" "Plant A" "Plant B" "Plant B" "Plant B"]';
% tbl = table(n,loc,plant,'VariableNames',["Mislabeled" "State" "Manufacturing Plant"]);
% bubblecloud(tbl,"Mislabeled","State")
% bubblecloud(tbl,"Mislabeled","State","Manufacturing Plant")
tbl = table(LastName,Age,Gender,SelfAssessedHealthStatus,...
h = heatmap(tbl,'Smoker','SelfAssessedHealthStatus');
c = contourslice(X,Y,Z,V,[],[],zslice);
set(c(i), 'linewidth', 2);
load('wind','x','y','u','v')
quiver(X,Y,U,V, 'linewidth', 2);
[startx,starty,startz] = meshgrid(80,20:10:50,0:5:15);
s = streamline(x,y,z,u,v,w,startx,starty,startz);
s = streamslice(x,y,z,u,v,w,[],[],5);
% [verts,averts] = streamslice(x,y,z,u,v,w,[],[],5);
% sl = streamline([verts averts]);
% set(sl,'Visible','off')
% iverts = interpstreamspeed(x,y,z,u,v,w,verts,.05);
% streamparticles(iverts, 200, ...
% 'Animate',15,'FrameRate',40, ...
% 'MarkerSize',10,'MarkerFaceColor',[0 .5 0])
[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);
streamribbon(x,y,z,u,v,w,sx,sy,sz);
[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);
streamtube(x,y,z,u,v,w,sx,sy,sz);
xrange = linspace(xmin,xmax,8);
yrange = linspace(ymin,ymax,8);
[cx,cy,cz] = meshgrid(xrange,yrange,zrange);
hcone = coneplot(x,y,z,u,v,w,cx,cy,cz,5);
hcone.EdgeColor = 'none';
[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);
slice(X,Y,Z,V,xslice,yslice,zslice)
x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'DisplayName','cos')
legend('location', 'best')
plot(x, sin(x), 'linewidth', 2, 'DisplayName','sin')
legend('location', 'best')
x = linspace(0,2*pi,100);
plot(x, cos(x), 'linewidth', 2, 'DisplayName','cos')
legend('location', 'best')
plot(x, sin(x), 'linewidth', 2, 'DisplayName','sin')
legend('location', 'best')
plot(x,y, 'linewidth', 2)
z = sin(3*x).*exp(0.5*x);
plot(x,z, 'linewidth', 2)